<!DOCTYPE html>
<html >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> JavaScript </title>
</head>
<body>
    <button onclick="alert('被点击了')" >点我</button>
    <a href="javascript:alert('这是a标签')">超链接</a>


</body>
<script src="01.js"></script>
<script>
    alert('我是内部脚本');
     var del=confirm('确定要删除吗？');
     if(del){
         alert('删除数据');
     }else{
         alert('取消操作');
     }

    //获取用户输入
    var name = prompt('您的姓名？');
    alert("下午好"+name);


</script>

</html>